package com.yzf.wisecoder.wisecodercommon.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author jianghuiyong
 * @Description
 * @date 2020/5/9 17:36
 */
@Data
@Accessors(chain = true)
@ApiModel("用户项目关系")
public class ProjectUserReq {

    @ApiModelProperty(value = "用户", required = true)
    @NotNull(message = "用户不能为空")
    private List<UserReq> users;

    @ApiModelProperty(value = "项目ID", required = true)
    @NotNull(message = "项目ID")
    private Long projectId;

    @ApiModelProperty(value = "角色ID")
    private Long roleId;
}
